package projet.dao.jpa;

import projet.dao.ClientDAOInterface;
import projet.dao.CourseDAOInterface;
import projet.dao.DAOFactoryInterface;
import projet.dao.LocationDAOInterface;
import projet.dao.SessionDAOInterface;

public class JPADAOFactory implements DAOFactoryInterface {
	
	private static JPADAOFactory INSTANCE = new JPADAOFactory();
	public static JPADAOFactory getInstance() {
		return INSTANCE;
	}
	
	private JPADAOFactory() { }

	@Override
	public ClientDAOInterface getClientDAO() {
		return new JPAClientDAO();
	}

	@Override
	public CourseDAOInterface getCourseDAO() {
		return new JPACourseDAO();
	}

	@Override
	public LocationDAOInterface getLocationDAO() {
		return new JPALocationDAO();
	}

	@Override
	public SessionDAOInterface getSessionDAO() {
		return new JPASessionDAO();
	}
	
	

}
